package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.entity.CmsShoppingCart;
import com.project.pojo.dto.UserShoppingCartItemDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CmsShoppingCartMapper extends BaseMapper<CmsShoppingCart> {

    /**
     * 根据用户ID获取购物车信息
     * @param userId
     * @return
     */
    List<UserShoppingCartItemDTO> getUserShoppingCart(@Param("userId") Long userId);

}